package com.lanswon.icc.admin.dao;

import com.lanswon.icc.admin.po.SysUser;
import com.lanswon.icc.admin.vo.UserVO;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);


    /**
     * 根据用户名查询用户
     * @param username
     * @param delFlag
     * @return
     */
    SysUser findByUsername(@Param("username") String username );



//    /**
//     * 分页
//     * @param querySysUserByPageParams
//     * @return
//     */
//    List<?> querySysUserByPage(@Param("querySysUserByPageParams") QueryUserByPageParams querySysUserByPageParams);



    UserVO getUserVoByUserId(@Param("userId") Integer userId);


}